<template>
  <div style="padding: 0 15px;" @click="toggleClick" class="box">
    <i class="logo el-icon-s-fold t1"></i>
  </div>
</template>

<script>
export default {
  name: 'Hamburger',
  props: {
    isActive: {
      type: Boolean,
      default: false
    }
  },
  methods: {
    toggleClick () {
      this.$emit('toggleClick')
    }
  }
}
</script>

<style scoped lang="scss">
.hamburger {
  display: inline-block;
  vertical-align: middle;
  width: 44px;
  height: 44px;
}
.box {
  display: flex;
  align-items: center;
  .logo {
    font-size: 40px;
  }
}
.hamburger.is-active {
  transform: rotate(180deg);
}
</style>
